import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.honeycombis.honeycom.common.core.util.TenantTable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;



/**
* @author :${author}
* @description: ${desc}
* @create date: ${createDate}
*/

<#if lombokEnable>
@Data
</#if>
@TenantTable
@TableName("${prefix}${tableName}")
@EqualsAndHashCode(callSuper = true)
public class ${entityName}${entitySuffix} extends Model<${entityName}${entitySuffix}>{

<#list columnEntityList as filed>
    <#if primaryKey!='noPrimaryKey'&& filed.sqlField==primaryKey>
        /** ${filed.sqlFieldComment} */
        @TableId(value = "${primaryKey}", type = IdType.ASSIGN_ID)
        ${filed.fieldQualifier} ${filed.javaFieldType} ${filed.fieldNameLow};
    <#else>
        /** ${filed.sqlFieldComment} */
        ${filed.fieldQualifier} ${filed.javaFieldType} ${filed.fieldNameLow};
    </#if>

</#list>

<#if !lombokEnable >
    <#list columnEntityList as filed>

        public ${filed.javaFieldType} get${filed.fieldName}() {
        return ${filed.fieldNameLow};
        }

        public void set${filed.fieldName}(${filed.javaFieldType} ${filed.fieldNameLow}) {
        this.${filed.fieldNameLow} = ${filed.fieldNameLow};
        }
    </#list>
</#if>
}
